import 'package:flutter/material.dart';
import 'package:get/get.dart';

import '../../../../common/index.dart';
import '../../../home/home/index.dart';

/// hello
class HelloWidget extends GetView<HomeController> {
  const HelloWidget({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Center(
      child: TextButton(
          onPressed: () {
            UserStore.to.cleanToken();
            Get.offAllNamed(AppRoutes.LOGIN);
            RouteSettings(name: AppRoutes.LOGIN);
          },
          child: Text('退出登录')),
    );
  }
}
